import request from '@/utils/request.js'

/***流量池管理列表***/
export function getFluxPoolMgtList(data){
    return request({
        url: 'tiktok/list',
        method: 'post',
        data
    })
}


export function getDouyingInfo(data){
    return request({
        url: 'tiktok/list/info',
        method: 'post',
        data
    })
}

/***删除url */
export function deleteUrl(data) {
    return request({
        url: 'tiktok/deleteUrl',
        method: 'post',
        data
    })
}


// wzyk 新增，根据agentid获取urlid
export function getUrlIdList(data){
	return request({
		url: '',
		method: 'post',
		data
	})
}


// wzyk 新增，根据权限查询抖音 info 详情
export function getDouYinPermissionInfo(data){
	return request({
		url: "tiktok/list/permissionInfo",
		method: 'post',
		data
	})
}

export function getTencentPermissionInfo(data){
	return request({
		url: "tencent/list/permissionInfo",
		method: "post",
		data
	})
}

export function getBaiDuPermissionInfo(data){
    return request({
        url: "baidu/list/permissionInfo",
		method: 'post',
		data
    })
}

export function getKuaiShouPermissionInfo(data){
    return request({
        url: "kuaishou/list/permissionInfo",
		method: 'post',
		data
    })
}

/***新增流量池***/
export function addFluxPool(data){
    return request({
        url: 'tiktok/insert',
        method: 'post',
        data
    })
}
/***编辑流量池***/
export function editFluxPool(data){
    return request({
        url: 'tiktok/update',
        method: 'post',
        data
    })
}
/***分配流量池列表***/
export function deltePool(data){
    return request({
        url: 'tiktok/delete',
        method: 'post',
        data
    })
}
